﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.Others.APP
{
    public partial class ShowAPPVersion : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    string Ver_ID = strid;
                    ShowInfo(Ver_ID);
                }
            }
        }

        private void ShowInfo(string Ver_ID)
        {
            BLL.APP_Version bll = new BLL.APP_Version();
            Model.APP_Version model = bll.GetModel(Ver_ID);
            this.lblVer_ID.Text = model.Ver_ID;
            this.lblVersion_Number.Text = model.Version_Number;
            this.lblAPP_Type.Text = model.APP_Type.ToString();
            this.lblDownLoad_Path.Text = model.DownLoad_Path;
            this.lblCreated_Date.Text = model.Created_Date.ToString();
            this.lblNewVersion.Text = model.NewVersion.ToString();

        }
    }
}